package com.ruoyi.bi.domain.portal;



import com.ruoyi.bi.domain.bireport.DimDto;
import com.ruoyi.bi.domain.bireport.KpiDto;
import com.ruoyi.bi.domain.common.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class PortalTableQuery extends BaseEntity {

	private String dsid;
	private String dsetId;
	private String id;
	private Integer cubeId;
	private String name;
	private String type;

	private List<KpiDto> kpiJson;
	private List<DimDto> cols;
	private List<DimDto> rows;

	private Map<String, Object> link;
	private LinkAcceptDto linkAccept;

	private List<PortalParamDto> portalParams;
	private List<CompParamDto> params;
	private String lockhead;
	private Integer height;
	private String showtitle;
	private Map<String, Object> style;

	private List<Map<String, Object>> drillDim;

	public List<DimDto> getDims(){
		List<DimDto> ret = new ArrayList<DimDto>();
		ret.addAll(this.cols);
		ret.addAll(this.rows);
		return ret;
	}

	@Override
	public void validate() {

	 }
}
